﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddFellow.aspx.cs" Inherits="sysadmin_SystemInfo_AddFellow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" Assembly="Telerik.QuickStart" %>
<%@ Register TagPrefix="radU" Namespace="Telerik.WebControls" Assembly="RadUpload.Net2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加友情链接</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript">
    function openUploadFile(CourseID)
    {
      var StrCourseName=document.form1.txt_CourseName.value;
      window.location="uploadFile.aspx?StrCourseName="+StrCourseName+"&CourseID=0" ;
    }
    </script>

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 
        function AutoColseAler()
        {
            //showFloat();
            //setTimeout("ShowNo()",3000);
        }

    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
        <tr>
            <td class="tree-titbg_left">
                <asp:Label ID="lbl_InfoTitle" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2"
        style="border-bottom-style: none;">
        <tr>
            <th>
                <asp:Label ID="lbl_CourseName" runat="server" Text=""></asp:Label>
            </th>
            <td colspan="3">
                <asp:TextBox ID="txt_CourseName" name="txt_CourseName" runat="server" Width="245px"
                    MaxLength="100"></asp:TextBox><span style="color: #ff0066;">*</span>
                <asp:RequiredFieldValidator ID="rfv_CourseName" runat="server" ErrorMessage="" ControlToValidate="txt_CourseName"></asp:RequiredFieldValidator>
                <asp:Label ID="lab_CouseMsg" ForeColor="Red" Text="" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <th>
                <asp:Label ID="lbl_Url" runat="server" Text=""></asp:Label>
            </th>
            <td colspan="3">
                <asp:TextBox ID="txt_fellowaddress" name="txt_fellowaddress" runat="server" Width="245px" MaxLength="100"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <th>
                <asp:Label ID="lbl_CourseImgUrl" runat="server" Text=""></asp:Label>
            </th>
            <td colspan="3">
                <asp:TextBox ID="txt_pic" runat="server" Width="360px"></asp:TextBox>
                <a href="#" onclick="showFloat();">
                    <%=GetLanageValueByKey("AddCourseInfo_lbl_l1", PowerCreator.LMS.Language.LanagetItemType.Page) %></a>
                <asp:Label ID="lbl_UploadFile" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="4" class="tree-bottom-bg">
                <asp:Button ID="btn_Save" runat="server" Text="" CssClass="inputBotton2" OnClick="btn_Save_Click" />
                <asp:Button ID="btn_Reset" runat="server" Text="" CausesValidation="False" CssClass="inputBotton2"
                    OnClick="btn_Back_Click" />
            </td>
        </tr>
    </table>
    <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
        background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
        left: 0; top: 0; display: none; overflow: hidden;">
    </div>
    <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
        width: 780px; z-index: 1001; position: absolute; display: none; top: 32%; left: 47%;
        margin: -200px 0 0 -400px;">
        <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                <tr>
                    <th>
                        &nbsp;
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbl_msg_description" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <radU:RadProgressManager ID="Radprogressmanager1" Width="100%" runat="server" />
                        <radU:RadProgressArea ID="progressArea1" Width="100%" runat="server">
                        </radU:RadProgressArea>
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" Width="80%" />
                        <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" Text=""
                            OnClick="btnBack_Click" />
                        <br />
                        <asp:Label ID="lbl_FileUpload_msg_FileType" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tree-bottom-bg1">
                        <input id="btn_colse" type="button" value='<%=GetLanageValueByKey("btn_Colse", PowerCreator.LMS.Language.LanagetItemType.Page)%>'
                            class="inputBotton2" onclick="ShowNo()" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
